﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DBAccessLibrary.Model
{
    /// <summary>
    /// 数据库类型
    /// </summary>
    public enum DBType
    {
        DB2 = 1,
        SqlServer = 2,
        Oracle = 3,
        MongoDB = 4,
        Ole = 5,
        ODBC = 6
    }

    /// <summary>
    /// 数据库连接状态
    /// </summary>
    public enum DBConnectStatus
    {
        Off,
        Connected
    }

    /// <summary>
    /// 事务状态
    /// </summary>
    public enum TransactionType
    {
        /// <summary>
        /// 不启用事务
        /// </summary>
        NoTransaction,
        /// <summary>
        /// 启用事务
        /// </summary>
        Transaction
    }

    /// <summary>
    /// 文档状态
    /// </summary>
    public enum DocumentStatus
    {
        /// <summary>
        /// 新建
        /// </summary>
        New,
        /// <summary>
        /// 文件
        /// </summary>
        File
    }

    /// <summary>
    /// 编辑状态
    /// </summary>
    public enum EditStatus
    {
        UnChange,
        Add,
        Modify,
        Delete
    }

    /// <summary>
    /// 语句显示状态
    /// </summary>
    [Flags]
    public enum SqlControlStatus
    {
        /// <summary>
        /// 运行
        /// </summary>
        Run = 1,
        /// <summary>
        /// 不运行
        /// </summary>
        NoRun = 2,
        /// <summary>
        /// 换行
        /// </summary>
        NewLine = 4,
        /// <summary>
        /// 不换行
        /// </summary>
        NoNewLine = 8
    }
}
